//
// Options.cpp for  in /home/gomes_m//svn/google/ticket-pour-gdl/menu_V1
// 
// Made by mickael gomes
// Login   <gomes_m@epitech.net>
// 
// Started on  Thu May 16 12:32:35 2013 mickael gomes
// Last update Thu May 30 11:26:30 2013 mickael gomes
//

#include		"Options.hh"

Options::Options()
{
}

Options::~Options()
{

}

void			Options::resetPos(Vector3f &coord)
{
  coord.posX1_ = 20;
  coord.posY1_ = 270;
  coord.posX2_ = 100;
  coord.posY2_ = 210;
  coord.posZ_ = 0;
  coord.moveX_ = 0;
  coord.moveY_ = 0;
  coord.moveXValue_ = 0;
  coord.moveYValue_ = 120;
  coord.limitXValue_ = 0;
  coord.limitYValue_ = -360;
}

void			Options::initialize(void)
{
  image_.initialize("images/options.png", -900, 660, 930, -630, -1);
  image_.initVertex();
}

void			Options::update(Key key, Cursor &cursor)
{
  if (key == UP || key == DOWN || key == B)
    cursor.update(key);
}

void			Options::unload()
{
}

void			Options::draw(void)
{
  image_.draw();
}
